<?php
declare(strict_types=1);

namespace app\admin\service;

use app\admin\model\EducationRequirement as EducationRequirementModel;

/**
 * 学历要求
 * Class EducationRequirementService
 * @package app\admin\service
 */
class EducationRequirementService
{
    /**
     * 指定学历要求字段值
     * @param $where
     * @param string $field
     * @return mixed
     */
    public static function findEducationRequirementValue($where, $field = 'name')
    {
        return EducationRequirementModel::findEducationRequirementValue($where, $field);
    }

    /**
     * 所有学历要求
     * @return array
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\DbException
     * @throws \think\db\exception\ModelNotFoundException
     */
    public static function getEducationRequirement()
    {
        return EducationRequirementModel::getEducationRequirement();
    }
}